package util

import "fmt"

func WebAddress(host string, port string) string {

	addr := fmt.Sprintf("%s:%s", host, port)
	return addr
}

func AmqpAddress(host string, port string, username string, password string, vhost string) string {

	addr := fmt.Sprintf("amqp://%s:%s@%s:%d/%s", username, password, host, port, vhost)
	return addr

}
